home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-04
/
bipl.zip
/
PROCS.ZIP
/
REC2TAB.ICN
< prev
next >
Wrap
Text File
|
1992-11-20
|
640b
|
28 lines
############################################################################
#
# File: rec2tab.icn
#
# Subject: Procedure to write record as tab-separated string
#
# Author: Ralph E. Griswold
#
# Date: September 2, 1991
#
###########################################################################
#
# This procedure writes fields of a record as tab-separated string.
# Carriage returns in files are converted to vertical tabs.
# (Works for lists too.)
#
procedure rec2tab(x)
local i
i := *x - 1
every writes(map(!x, "\n", "\v"),"\t") \ i
write(map(x[-1], "\n", "\v"))
return
end